<?php
include('init.php');

$t1 = new Team(array(
	new Player('T1_A', array('EN' => 99, 'VE' => 72, 'RE' => 40, 'AG' => 30, 'CA' => 53, 'MO' => 38, 'EF' => 79, 'ME' => 59), 'P', array('x' => 1, 'y' => 30)),    
	new Player('T1_B', array('EN' => 99, 'VE' => 68, 'RE' => 80, 'AG' => 59, 'CA' => 53, 'MO' => 47, 'EF' => 67, 'ME' => 59), 'D', array('x' => 20, 'y' => 10)),    
	new Player('T1_C', array('EN' => 99, 'VE' => 60, 'RE' => 90, 'AG' => 78, 'CA' => 53, 'MO' => 58, 'EF' => 43, 'ME' => 59), 'D', array('x' => 20, 'y' => 25)),    
	new Player('T1_D', array('EN' => 99, 'VE' => 70, 'RE' => 78, 'AG' => 90, 'CA' => 53, 'MO' => 63, 'EF' => 52, 'ME' => 59), 'D', array('x' => 20, 'y' => 35)),    
	new Player('T1_E', array('EN' => 99, 'VE' => 69, 'RE' => 62, 'AG' => 84, 'CA' => 53, 'MO' => 84, 'EF' => 88, 'ME' => 59), 'D', array('x' => 20, 'y' => 50)),    
	new Player('T1_F', array('EN' => 99, 'VE' => 68, 'RE' => 95, 'AG' => 55, 'CA' => 53, 'MO' => 35, 'EF' => 59, 'ME' => 59), 'M', array('x' => 45, 'y' => 10)),    
	new Player('T1_G', array('EN' => 99, 'VE' => 80, 'RE' => 60, 'AG' => 65, 'CA' => 53, 'MO' => 56, 'EF' => 96, 'ME' => 59), 'M', array('x' => 45, 'y' => 20)),    
	new Player('T1_H', array('EN' => 99, 'VE' => 90, 'RE' => 70, 'AG' => 46, 'CA' => 53, 'MO' => 68, 'EF' => 54, 'ME' => 59), 'M', array('x' => 45, 'y' => 30)),    
	new Player('T1_I', array('EN' => 99, 'VE' => 68, 'RE' => 85, 'AG' => 52, 'CA' => 53, 'MO' => 82, 'EF' => 76, 'ME' => 59), 'M', array('x' => 45, 'y' => 40)),    
	new Player('T1_J', array('EN' => 99, 'VE' => 70, 'RE' => 73, 'AG' => 45, 'CA' => 53, 'MO' => 56, 'EF' => 63, 'ME' => 59), 'A', array('x' => 85, 'y' => 20)),    
	new Player('T1_K', array('EN' => 99, 'VE' => 72, 'RE' => 92, 'AG' => 78, 'CA' => 53, 'MO' => 78, 'EF' => 54, 'ME' => 59), 'A', array('x' => 85, 'y' => 40)),
));

$t2 = new Team(array(
	new Player('T2_A', array('EN' => 99, 'VE' => 72, 'RE' => 94, 'AG' => 40, 'CA' => 53, 'MO' => 84, 'EF' => 46, 'ME' => 59), 'P', array('x' => 99, 'y' => 30)),    
	new Player('T2_B', array('EN' => 99, 'VE' => 80, 'RE' => 47, 'AG' => 40, 'CA' => 53, 'MO' => 65, 'EF' => 55, 'ME' => 59), 'D', array('x' => 80, 'y' => 10)),    
	new Player('T2_C', array('EN' => 99, 'VE' => 65, 'RE' => 63, 'AG' => 40, 'CA' => 53, 'MO' => 98, 'EF' => 62, 'ME' => 59), 'D', array('x' => 80, 'y' => 25)),    
	new Player('T2_D', array('EN' => 99, 'VE' => 73, 'RE' => 81, 'AG' => 40, 'CA' => 53, 'MO' => 43, 'EF' => 75, 'ME' => 59), 'D', array('x' => 80, 'y' => 35)),    
	new Player('T2_E', array('EN' => 99, 'VE' => 92, 'RE' => 44, 'AG' => 40, 'CA' => 53, 'MO' => 74, 'EF' => 86, 'ME' => 59), 'D', array('x' => 80, 'y' => 50)),    
	new Player('T2_F', array('EN' => 99, 'VE' => 55, 'RE' => 35, 'AG' => 40, 'CA' => 53, 'MO' => 66, 'EF' => 97, 'ME' => 59), 'M', array('x' => 55, 'y' => 10)),    
	new Player('T2_G', array('EN' => 99, 'VE' => 63, 'RE' => 27, 'AG' => 40, 'CA' => 53, 'MO' => 98, 'EF' => 74, 'ME' => 59), 'M', array('x' => 55, 'y' => 20)),    
	new Player('T2_H', array('EN' => 99, 'VE' => 68, 'RE' => 38, 'AG' => 40, 'CA' => 53, 'MO' => 27, 'EF' => 52, 'ME' => 59), 'M', array('x' => 55, 'y' => 30)),    
	new Player('T2_I', array('EN' => 99, 'VE' => 70, 'RE' => 75, 'AG' => 40, 'CA' => 53, 'MO' => 45, 'EF' => 41, 'ME' => 59), 'M', array('x' => 55, 'y' => 40)),    
	new Player('T2_J', array('EN' => 99, 'VE' => 45, 'RE' => 84, 'AG' => 40, 'CA' => 53, 'MO' => 62, 'EF' => 35, 'ME' => 59), 'A', array('x' => 15, 'y' => 20)),    
	new Player('T2_K', array('EN' => 99, 'VE' => 92, 'RE' => 53, 'AG' => 40, 'CA' => 53, 'MO' => 81, 'EF' => 56, 'ME' => 59), 'A', array('x' => 15, 'y' => 40)),    
));

$m = new Match($t1, $t2);

var_dump($m);